﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp15
{
    class Program
    {
        static void Main(string[] args)
        {
            Shape h;
            Console.WriteLine("请输入你要计算的图形：1、圆；2、正方形。");
            int hhhh = int.Parse(Console.ReadLine());
            switch (hhhh)
            {
                case 1:
                    h = new Circle();
                    break;
                case 2:
                    h = new Square();
                    break;
                default:
                    Console.WriteLine("输入有错！！！");
                    h = new Circle();
                    break;
            }
            Print p = new Print();
            p.print(h);

        }

    }
}

